<div class="page-content">
	<div class="row">
		<div class="col-xs-12"> 
	
			<div id="alert_box_table"></div>

			<div class="well well-sm">
				<div class="row">

					<div class="col-sm-6 padding0">
						<div class="input-group">

							<input id="phonenumber" name="phonenumber" type="text" value="{$param['phonenumber']}" placeholder="请输入手机号码" class="form-control">
							<span class="input-group-btn">
								<button type="button" id="seach_btn" class="btn btn-default" ><i class="icon-search green"></i>
								<span class="">搜索</span></button>
							</span>
							 
						</div>
					</div>
					
					


				</div>
			</div>
			<div class="space-4"></div>
			<div class="table-responsive">
				{:NW('Table',array(
						'columns'=>array(
							array('name'=>'phonenumber','text'=>'手机号码','width'=>'18%','sortable'=>true),
							array('name'=>'message','text'=>'短信内容','width'=>'45%','sortable'=>false),
							array('name'=>'last_send','text'=>'发送时间','width'=>'16%','sortable'=>true),
							array('name'=>'type','text'=>'类型','width'=>'16%','sortable'=>true),
							
							
						), 
						'default'	=> '空',
						'rows'		=> !is_array($rows) ? array() : $rows ,
						
						
					) ,'User'
				)}
				
			</div>
			{:W('Page/index', array('total'=>$count, 'rp'=>$pagelen, 'param'=>$param))}
			


		</div>
	</div>
</div>


<script type="text/javascript">
	$(document).ready(function(){

		$('#seach_btn').click(function(){
			window.location.href = search();
		});
		$('#listRows').change(function(){
			window.location.href = search();
		})
		$("th[name='sort']").click(function(){

			window.location.href = search()+'&reverse='+$(this).attr('id')+'&sortkey='+$(this).attr('field');
		});
		function search(){
			var phonenumber = $('#phonenumber').val();
			var listRows = $('#listRows').val();
			return "{:U('Sms/sms_log_list')}?pagelen="+listRows+'&phonenumber='+phonenumber;
		}

		
		

	});
</script>
